<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
author : Mishal Parmar
Date   : 21 Oct 2012


-->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<%@page import="java.util.ArrayList"%>
<%@page import="dbhandler.AccessRole"%>
<%@page import="entityclasses.roles"%>
<%@page import="dbhandler.EventType"%>
<%@page import="entityclasses.eventtype"%>


<body>
    
<form name="addevent" action="../createevent" method="post">
    
    <div>
        <h2>
     Create Event
        </h2>
    </div>
<div>
    
    
<%
      
            AccessRole role=new AccessRole();
            EventType type=new EventType();
            
            ArrayList usrrol=new ArrayList();
            ArrayList etype=new ArrayList();
            
            usrrol=role.accessuser();
            etype=type.eventtype();
            
            roles useraccess=new roles();
            eventtype typeofevent=new eventtype();
            
            
        
        
%>
<div>
<label> Type of Event </label>
    
        <%
        for(int i=0;i<etype.size();i++)
        {
            typeofevent=(eventtype) etype.get(i);
           
        
        out.println("<input type='radio' name='eventtype' value='"+typeofevent.getType_id()+"'>" + typeofevent.getEvent_type());
        }
        %>
        
            
    
</div>
        <div>
    <label> Event Member </label>
    
        <%
        for(int i=0;i<usrrol.size();i++)
        {
            useraccess=(roles) usrrol.get(i);
        
        out.println("<input type='radio' name='accesstype' value='"+useraccess.getRole_id()+"'/>" + useraccess.getRole_name());
        }
        %>
        
            
    
</div>
        
<div>
    <br/>
        
    <input type="Submit" value="Add Event" name="submit"/> 
    
</div>
</div>
 
</form>
</body>
</html>
